package com.ltcode;

import cn.hutool.json.JSONUtil;
import com.ltcode.domain.SysUser;
import com.ltcode.service.SysUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author： ltcode
 * @Create by： 2025/5/28 0028 21:51
 * @ClassName: TestController
 * @Describe：
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private SysUserService sysUserService;
    @RequestMapping("/v1")
    public String hello() {
        List<SysUser> list = sysUserService.list();
        return JSONUtil.toJsonStr(list);
    }
}
